#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "tcpip_adapter.h"

/* ======================================== DHCP Releated ======================================== */
static pthread_mutex_t dhcp_mutex;
void dhcp_mutex_create(void)
{
    pthread_mutex_init(&dhcp_mutex, NULL);
}

void dhcp_mutex_get(void)
{
    pthread_mutex_lock(&dhcp_mutex);
}

void dhcp_mutex_put(void)
{
    pthread_mutex_unlock(&dhcp_mutex);
}

void tcpip_adapter_init(void)
{
    dhcp_mutex_create();
}